package com.searademo.products.controller;


import com.searademo.products.service.IStorageTblService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liuguohua
 * @since 2021-09-01
 */
@RestController
@RequestMapping("/products")
public class StorageTblController {

    @Autowired
    private IStorageTblService iStorageTblService;

    @RequestMapping(path = "/deduct")
    public Boolean deduct(String commodityCode, Integer count) {
        int i = 1/0;
        iStorageTblService.deduct(commodityCode, count);
        return true;
    }

}

